package com.rogo.rogobox.controllers
{
	import com.rogo.mvc.interfaces.INotification;
	import com.rogo.mvc.sub.command.Command;
	import com.rogo.rogobox.views.components.windows.MicroblogWindow;
	import com.rogo.rogobox.views.components.windows.MicroblogWindowType;
	import com.sina.microblog.data.MicroBlogStatus;
	
	public class ShowRepostCommand extends Command
	{
		public function ShowRepostCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			var microblog:MicroBlogStatus = notification.param as MicroBlogStatus;
			if (!microblog) 
				return;
			
			new MicroblogWindow().openWindow(microblog, MicroblogWindowType.TYPE_REPOST);
		}
		
	}
}